﻿using System;
using System.Windows.Data;

namespace Rio.Framework.Pages.Helpers.Converter
{
    public class FieldToImageConverter: IValueConverter
    {
        
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {

            if ((bool)value == true)
                return "../../Assets/Images/User.png";
            else return "../../Assets/Images/Group.png";
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return value;
        }
        

    }
}
